通过订单退款接口对已经支付的 order
对象进行退款。
注意:用户在使用订单时,可能会出现以下异常情况,你需要根据实际情况进行退款处理:
order
对象的 status
值为 canceled
,paid
值为 true
,amount_paid
等于 actual_amount
。order
对象中的 amount_paid
大于 actual_amount
。属性详见 退款。
{
"id": "re_y1u944PmfnrTHyvnL0nD0iD1",
"object": "refund",
"order_no": "y1u944PmfnrTHyvnL0nD0iD1",
"amount": 9,
"created": 1409634160,
"succeed": true,
"status": "succeeded",
"time_succeed": 1409634192,
"description": "Refund Description",
"failure_code": null,
"failure_msg": null,
"metadata": {},
"charge": "ch_L8qn10mLmr1GS8e5OODmHaL4",
"charge_order_no": "123456789",
"transaction_no": "2004450349201512090096425284",
"funding_source": null,
"extra": {}
}